<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStatEverdayPlayerTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('stat_everday_players', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('server_id')->comment('服务器id');
            $table->integer('number')->comment('玩家数量');
            $table->date('day')->comment('日期');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('stat_everday_players');
    }
}
